package App.Repository;

import App.Entity.ContactCheck;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by yu on 2017/8/10.
 */
@Repository
public interface ContactCheckRepository extends CrudRepository<ContactCheck,Long>
{
    public List<ContactCheck> findContactChecksByOwnerIdOrderByAddTimeDesc(Long ownerId);

    public ContactCheck findContactCheckByOwnerIdAndContactId(Long ownerId,Long contactId);



}
